package com.yanqu.road.entity.banquet.baifubanquet;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description
 * @Author cwq
 * @Data 2021/11/9 21:53
 */
@FieldTypeAnnotation(tableName = "t_u_activity_good_banquet_finish_receive")
public class GoodBanquetFinishReceiveData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "宴会id")
    private long banquetId;

    @FieldTypeAnnotation(select = true, update = true,desc = "活动id")
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;

    @FieldTypeAnnotation(desc = "宴会类型")
    private int type;

    @FieldTypeAnnotation(desc = "赴宴玩家数量")
    private int num;

    @FieldTypeAnnotation(desc = "是否领取过奖励")
    private boolean isReceive;

    @FieldTypeAnnotation(desc = "结算时间 ")
    private long endTime;

    public long getBanquetId() {
        return banquetId;
    }
    public void setBanquetId(long banquetId) {
        if (this.banquetId != banquetId) {
            this.banquetId = banquetId;
            setOp(DataStatus.Update);
        }
    }

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getType() {
        return type;
    }
    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }
    }

    public int getNum() {
        return num;
    }
    public void setNum(int num) {
        if (this.num != num) {
            this.num = num;
            setOp(DataStatus.Update);
        }
    }

    public boolean getIsReceive() {
        return isReceive;
    }
    public void setIsReceive(boolean isReceive) {
        if (this.isReceive != isReceive) {
            this.isReceive = isReceive;
            setOp(DataStatus.Update);
        }
    }

    public long getEndTime() {
        return endTime;
    }
    public void setEndTime(long endTime) {
        if (this.endTime != endTime) {
            this.endTime = endTime;
            setOp(DataStatus.Update);
        }
    }
}
